package niming;

public class Test {
    public static void main(String[] args) {

        Operate op = new Operate();
        Jump c = new Cat();
        op.operate(c);

        op.operate(new Jump() {
            @Override
            public void Jump() {
                System.out.println("猫可以跳高2");
            }
        });


    }
}
